package hlhj.fhp.tvlib

import android.content.Context
import android.content.Intent
import hlhj.fhp.tvlib.activitys.HomeAty
import hlhj.fhp.tvlib.activitys.LiveAty
import hlhj.fhp.tvlib.activitys.TvAty
import hlhj.fhp.tvlib.fragment.TvHomeFgm

/**
 * Created by Administrator on 2018\5\21 0021.
 */
object TVEntry {
    fun goLive(context:Context){
        val intent = Intent(context, LiveAty::class.java)
        context.startActivity(intent)
    }
    fun goTv(context: Context){
        val intent = Intent(context, TvAty::class.java)
        context.startActivity(intent)
    }
    fun goHome(context: Context){
        val intent = Intent(context, HomeAty::class.java)
        context.startActivity(intent)
    }

    fun setBase(baseUrl:String){
        Contents.BaseUrl=baseUrl
        Contents.IMG_URL=baseUrl
    }

    fun getHomeFgm(context: Context): TvHomeFgm {
        val tvHomeFgm = TvHomeFgm()
        return tvHomeFgm
    }
}